/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BUS;

import DAO.CTPhieuNhapSachDAO;
import DAO.PhieuNhapSachDAO;
import Entity.CTPhieuNhapSach;
import Entity.PhieuNhapSach;

/**
 *
 * @author Dark_Knight
 */
public class PhieuNhapSachImpl implements PhieuNhapSachBUS{

    private PhieuNhapSachDAO dao;
    private CTPhieuNhapSachDAO daoDetail;
    
    public PhieuNhapSachImpl() {
        dao = new DAO.PhieuNhapSachImpl();
        daoDetail = new DAO.CTPhieuNhapSachImpl();
    }
    
    public boolean add(PhieuNhapSach data) {
        return dao.add(data);
    }

    public boolean addDetail(CTPhieuNhapSach data) {
        return daoDetail.add(data);
    }
}
